package com.ibeeking.found.cms.c.rest.service;

import com.ibeeking.found.cms.service.common.bo.PageBaseBO;
import com.ibeeking.found.cms.service.common.constants.enums.PageCategoryEnum;
import com.ibeeking.found.cms.service.common.query.PageBaseQuery;

import java.util.List;


/**
 * IPageBaseService
 *
 * @Author ibeeking
 * @Date 2021-05-08 16:05
 */
public interface IPageBaseService {

    List<PageBaseBO> list(PageBaseQuery pageBaseQuery);

    /***
     * 通过id查询
     */
    PageBaseBO selById(Long id);

    PageBaseBO selOneByPageCategory(PageCategoryEnum pageCategoryEnum, String tenantId);

    /**
     * 清除缓存
     * @param ids
     * @return
     */
    Boolean removeCacheByIds(Long... ids);

}